<!DOCTYPE html>
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Content-Language" content="zh-CN">
<meta name="author" content="管雷鸣">
<title>H5 Mobile DEMO</title>
<script src="https://res.zvo.cn/msg/msg.js"></script>
<script src="https://res.zvo.cn/request/request.js"></script>
<link rel="stylesheet" href="../style.css">
</head>
<body>
		<h2>第一步：引入几个js、css文件</h2>
		<pre>
&lt;script src="https://res.zvo.cn/msg/msg.js"&gt;&lt;/script&gt;
&lt;script src="https://res.zvo.cn/wm/wm.js"&gt;&lt;/script&gt;
&lt;script src="https://res.zvo.cn/kefu/kefu.js"&gt;&lt;/script&gt;
&lt;link href="https://res.zvo.cn/kefu/css/style.css" media="screen" rel="stylesheet" type="text/css" &gt;
		</pre>
		<h2>第二步：设置服务器域名</h2>
		<pre id="kefuEntry">
kefu.api.domain =  'http://123.123.123.123:80'; 
kefu.socket.url = 'ws://123.123.123.123:8081/websocket';
		</pre>
		其实主要就是吧里面的ip地址换成你自己的
		<h2>第三步：传入您的坐席id，一句js代码调起会话</h2>
		<pre id="kefuEntry">
kefu.ui.chat.entry("9752d379cbe641039de8c68974319bb9");
		</pre>
		<h2>演示html代码</h2>
		<textarea id="yanshi" rows="20">加载中...</textarea>
<script>
request.get('/dev/h5Mobile/demo.html',{},function(data){
	document.getElementById('yanshi').value=data;
});
</script>

		<h2>效果图</h2>
		<p style="text-align:center;"><img src="https://res.zvo.cn/kefu/dev/h5Mobile/kefu_mobile.png" style="width:60%" /></p>
		

</body>
</html>